package fast;

/**
 * Central repository of command keywords used throughout
 * the FAST system. 
 * 
 * @author Adam Bell
 * @date 12/12/2009
 */
public enum CommandsEnum {

	//System Commands
	SYSTEM_EXIT("EXIT"),
	SYSTEM_SHUTDOWN("SHUTDOWN"),
	SYSTEM_JOIN("JOIN"),
	SYSTEM_LEAVE("LEAVE"),
	SYSTEM_DONE("DONE"),
	SYSTEM_ERROR("ERROR"),
	SYSTEM_COMPLETE("COMPLETE"),
	SYSTEM_PEER("PEER"),
	
	//Processing Commands
	PROC_LOAD("LOAD"),
	PROC_SEARCH("SEARCH"),
	PROC_RESULT("RESULT"),
	PROC_COMPLETE("COMPLETE");
	
	private String commandString;

	/**
	 * Constructor
	 * 
	 * @param command
	 *            The command to return
	 */
	private CommandsEnum(String command) {
		commandString = command;
	}

	/**
	 * Returns a string representation of the requested command
	 * 
	 * @return String command
	 */
	public String toString() {
		return commandString;
	}
	
}
